
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>Linux基础 · AGou's StudyNote</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="AGou">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-anchors/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-anchor-navigation-ex/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-prism/prism-tomorrow.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-insert-logo/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-lightbox/css/lightbox.min.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-donate/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="Linux启动流程、内核、grub、模块、内核的编译、anaconda自动化.html" />
    
    
    <link rel="prev" href="./" />
    

    <style>
    @media only screen and (max-width: 640px) {
        .book-header .hidden-mobile {
            display: none;
        }
    }
    </style>
    <script>
        window["gitbook-plugin-github-buttons"] = {"repo":"AGou-ops/myStudyNote","types":["star","watch","fork"],"size":"small"};
    </script>

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="http://agou-ops.github.io" target="_blank" class="custom-link">◆点击进入我的个人博客</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                        <b>1.1.</b>
                    
                    关于我
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../Program_lang/">
            
                <a href="../Program_lang/">
            
                    
                        <b>1.2.</b>
                    
                    编程语言
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../Program_lang/Python.html">
            
                <a href="../Program_lang/Python.html">
            
                    
                        <b>1.2.1.</b>
                    
                    Python
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../Program_lang/Java.html">
            
                <a href="../Program_lang/Java.html">
            
                    
                        <b>1.2.2.</b>
                    
                    Java
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../Program_lang/Splash_Lua.html">
            
                <a href="../Program_lang/Splash_Lua.html">
            
                    
                        <b>1.2.3.</b>
                    
                    Splash_Lua
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../Database/">
            
                <a href="../Database/">
            
                    
                        <b>1.3.</b>
                    
                    数据库
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../Database/Mysql、MariaDB/README.md">
            
                <span>
            
                    
                        <b>1.3.1.</b>
                    
                    Mysql/MariaDB
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1.1" data-path="../Database/Mysql、MariaDB/MySQL、MariaDB基础.html">
            
                <a href="../Database/Mysql、MariaDB/MySQL、MariaDB基础.html">
            
                    
                        <b>1.3.1.1.</b>
                    
                    MySQL/MariaDB基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.2" data-path="../Database/Mysql、MariaDB/php-mysql.html">
            
                <a href="../Database/Mysql、MariaDB/php-mysql.html">
            
                    
                        <b>1.3.1.2.</b>
                    
                    php-mysql
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../Database/MongoDB.html">
            
                <a href="../Database/MongoDB.html">
            
                    
                        <b>1.3.2.</b>
                    
                    MongoDB
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../Database/Redis.html">
            
                <a href="../Database/Redis.html">
            
                    
                        <b>1.3.3.</b>
                    
                    Redis
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="./">
            
                <a href="./">
            
                    
                        <b>1.4.</b>
                    
                    Linux
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.4.1" data-path="Linux基础.html">
            
                <a href="Linux基础.html">
            
                    
                        <b>1.4.1.</b>
                    
                    Linux基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="Linux启动流程、内核、grub、模块、内核的编译、anaconda自动化.html">
            
                <a href="Linux启动流程、内核、grub、模块、内核的编译、anaconda自动化.html">
            
                    
                        <b>1.4.2.</b>
                    
                    Linux启动流程、内核、grub、模块等
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="Linux服务器.html">
            
                <a href="Linux服务器.html">
            
                    
                        <b>1.4.3.</b>
                    
                    Linux服务器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="Linux状态信息.html">
            
                <a href="Linux状态信息.html">
            
                    
                        <b>1.4.4.</b>
                    
                    Linux状态信息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="Linux网络客户端工具.html">
            
                <a href="Linux网络客户端工具.html">
            
                    
                        <b>1.4.5.</b>
                    
                    Linux网络客户端工具
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.6" data-path="Linux网络配置.html">
            
                <a href="Linux网络配置.html">
            
                    
                        <b>1.4.6.</b>
                    
                    Linux网络配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.7" data-path="Linux配置文件.md">
            
                <span>
            
                    
                        <b>1.4.7.</b>
                    
                    Linux配置文件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.8" data-path="Linux时间服务器.html">
            
                <a href="Linux时间服务器.html">
            
                    
                        <b>1.4.8.</b>
                    
                    Linux时间服务器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.9" data-path="Linux日志管理系统.html">
            
                <a href="Linux日志管理系统.html">
            
                    
                        <b>1.4.9.</b>
                    
                    Linux日志管理系统
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.10" data-path="sudo详解.html">
            
                <a href="sudo详解.html">
            
                    
                        <b>1.4.10.</b>
                    
                    sudo详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.11" data-path="SElinux.html">
            
                <a href="SElinux.html">
            
                    
                        <b>1.4.11.</b>
                    
                    SELinux
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.12" data-path="iptables.html">
            
                <a href="iptables.html">
            
                    
                        <b>1.4.12.</b>
                    
                    iptables
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.13" data-path="Linux_shell.html">
            
                <a href="Linux_shell.html">
            
                    
                        <b>1.4.13.</b>
                    
                    Linux Shell
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.14" data-path="shell_awk.html">
            
                <a href="shell_awk.html">
            
                    
                        <b>1.4.14.</b>
                    
                    shell_awk
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.15" data-path="OpenSSL、PKI搭建、算法.html">
            
                <a href="OpenSSL、PKI搭建、算法.html">
            
                    
                        <b>1.4.15.</b>
                    
                    OpenSSL、PKI搭建
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.16" data-path="DNS服务器.html">
            
                <a href="DNS服务器.html">
            
                    
                        <b>1.4.16.</b>
                    
                    DNS服务器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.17" data-path="Frp内网穿透.html">
            
                <a href="Frp内网穿透.html">
            
                    
                        <b>1.4.17.</b>
                    
                    Frp内网穿透
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.18" data-path="Linux其他.md">
            
                <span>
            
                    
                        <b>1.4.18.</b>
                    
                    Linux其他
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../Linux_FileSystem/">
            
                <a href="../Linux_FileSystem/">
            
                    
                        <b>1.5.</b>
                    
                    Linux文件系统
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../Linux_FileSystem/FTP.html">
            
                <a href="../Linux_FileSystem/FTP.html">
            
                    
                        <b>1.5.1.</b>
                    
                    FTP
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../Linux_FileSystem/SAMBA.html">
            
                <a href="../Linux_FileSystem/SAMBA.html">
            
                    
                        <b>1.5.2.</b>
                    
                    SAMBA
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../Linux_Tools/">
            
                <a href="../Linux_Tools/">
            
                    
                        <b>1.6.</b>
                    
                    Linux工具
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../Linux_Tools/fzf工具.html">
            
                <a href="../Linux_Tools/fzf工具.html">
            
                    
                        <b>1.6.1.</b>
                    
                    fzf工具
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../Linux_Tools/工具集合.html">
            
                <a href="../Linux_Tools/工具集合.html">
            
                    
                        <b>1.6.2.</b>
                    
                    Linux工具集合
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../WEB_Server/">
            
                <a href="../WEB_Server/">
            
                    
                        <b>1.7.</b>
                    
                    网站服务器
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../WEB_Server/HTML基础.html">
            
                <a href="../WEB_Server/HTML基础.html">
            
                    
                        <b>1.7.1.</b>
                    
                    HTML基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../WEB_Server/WEB基础.html">
            
                <a href="../WEB_Server/WEB基础.html">
            
                    
                        <b>1.7.2.</b>
                    
                    WEB基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="../WEB_Server/httpd.html">
            
                <a href="../WEB_Server/httpd.html">
            
                    
                        <b>1.7.3.</b>
                    
                    httpd/Apache
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.4" data-path="../WEB_Server/httpd.conf文件详解.html">
            
                <a href="../WEB_Server/httpd.conf文件详解.html">
            
                    
                        <b>1.7.4.</b>
                    
                    httpd.conf文件详解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.5" data-path="../WEB_Server/Nginx.html">
            
                <a href="../WEB_Server/Nginx.html">
            
                    
                        <b>1.7.5.</b>
                    
                    Nginx
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.6" data-path="../WEB_Server/HTTP状态码-详情.html">
            
                <a href="../WEB_Server/HTTP状态码-详情.html">
            
                    
                        <b>1.7.6.</b>
                    
                    HTTP状态码-详情
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../Common_Framework/">
            
                <a href="../Common_Framework/">
            
                    
                        <b>1.8.</b>
                    
                    常用框架
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../Common_Framework/LNMP.html">
            
                <a href="../Common_Framework/LNMP.html">
            
                    
                        <b>1.8.1.</b>
                    
                    LNMP
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../Common_Framework/LAMP.html">
            
                <a href="../Common_Framework/LAMP.html">
            
                    
                        <b>1.8.2.</b>
                    
                    LAMP
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../Docker&K8s/">
            
                <a href="../Docker&K8s/">
            
                    
                        <b>1.9.</b>
                    
                    容器及容器编排
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="../Docker&K8s/Docker/Docker.html">
            
                <a href="../Docker&K8s/Docker/Docker.html">
            
                    
                        <b>1.9.1.</b>
                    
                    Docker
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1.1" data-path="../Docker&K8s/Docker/Docker.html">
            
                <a href="../Docker&K8s/Docker/Docker.html">
            
                    
                        <b>1.9.1.1.</b>
                    
                    Docker
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="../Docker&K8s/K8s/">
            
                <a href="../Docker&K8s/K8s/">
            
                    
                        <b>1.9.2.</b>
                    
                    K8s
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.2.1" data-path="../Docker&K8s/K8s/K8s基础知识.html">
            
                <a href="../Docker&K8s/K8s/K8s基础知识.html">
            
                    
                        <b>1.9.2.1.</b>
                    
                    K8s基础知识
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2.2" data-path="../Docker&K8s/K8s/K8s安装与部署.html">
            
                <a href="../Docker&K8s/K8s/K8s安装与部署.html">
            
                    
                        <b>1.9.2.2.</b>
                    
                    K8s安装与部署
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../Git/">
            
                <a href="../Git/">
            
                    
                        <b>1.10.</b>
                    
                    Git
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.1" data-path="../Git/Git基础.html">
            
                <a href="../Git/Git基础.html">
            
                    
                        <b>1.10.1.</b>
                    
                    Git基础
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.2" data-path="../Git/GitLab服务器.html">
            
                <a href="../Git/GitLab服务器.html">
            
                    
                        <b>1.10.2.</b>
                    
                    GitLab服务器
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="../Windows/">
            
                <a href="../Windows/">
            
                    
                        <b>1.11.</b>
                    
                    Windows系统
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.1" data-path="../Windows/cmd命令.html">
            
                <a href="../Windows/cmd命令.html">
            
                    
                        <b>1.11.1.</b>
                    
                    cmd命令
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="../Vim.html">
            
                <a href="../Vim.html">
            
                    
                        <b>1.12.</b>
                    
                    Vim
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="../i3WM快捷键.html">
            
                <a href="../i3WM快捷键.html">
            
                    
                        <b>1.13.</b>
                    
                    i3WM快捷键
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="../ADB命令.html">
            
                <a href="../ADB命令.html">
            
                    
                        <b>1.14.</b>
                    
                    ADB命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.15" data-path="../Tmux.html">
            
                <a href="../Tmux.html">
            
                    
                        <b>1.15.</b>
                    
                    Tmux
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.16" data-path="../Kindle.html">
            
                <a href="../Kindle.html">
            
                    
                        <b>1.16.</b>
                    
                    Kindle越狱指南
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17" data-path="../Other/">
            
                <a href="../Other/">
            
                    
                        <b>1.17.</b>
                    
                    Other
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.17.1" data-path="../Other/pandoc.html">
            
                <a href="../Other/pandoc.html">
            
                    
                        <b>1.17.1.</b>
                    
                    pandoc
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.2" data-path="../Other/jupyter&reveal.js.html">
            
                <a href="../Other/jupyter&reveal.js.html">
            
                    
                        <b>1.17.2.</b>
                    
                    jupyter & reveal.js
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.3" data-path="../Other/json.html">
            
                <a href="../Other/json.html">
            
                    
                        <b>1.17.3.</b>
                    
                    json
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.17.4" data-path="../Other/Reveal_js.html">
            
                <a href="../Other/Reveal_js.html">
            
                    
                        <b>1.17.4.</b>
                    
                    Reveal_js
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >Linux基础</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <div id="anchor-navigation-ex-navbar"><i class="fa fa-anchor"></i><ul><li><a href="#&#x57FA;&#x7840;&#x547D;&#x4EE4;&#x4F7F;&#x7528;">1. &#x57FA;&#x7840;&#x547D;&#x4EE4;&#x4F7F;&#x7528;</a></li><li><a href="#&#x4ECE;&#x8FDC;&#x5904;&#x590D;&#x5236;&#x6587;&#x4EF6;&#x5230;&#x672C;&#x5730;&#x76EE;&#x5F55;">2. &#x4ECE;&#x8FDC;&#x5904;&#x590D;&#x5236;&#x6587;&#x4EF6;&#x5230;&#x672C;&#x5730;&#x76EE;&#x5F55;</a></li><li><a href="#&#x4E0A;&#x4F20;&#x672C;&#x5730;&#x6587;&#x4EF6;&#x5230;&#x8FDC;&#x7A0B;&#x673A;&#x5668;&#x6307;&#x5B9A;&#x76EE;&#x5F55;">3. &#x4E0A;&#x4F20;&#x672C;&#x5730;&#x6587;&#x4EF6;&#x5230;&#x8FDC;&#x7A0B;&#x673A;&#x5668;&#x6307;&#x5B9A;&#x76EE;&#x5F55;</a></li><li><a href="#&#x6307;&#x5B9A;&#x7AEF;&#x53E3;-2222">4. &#x6307;&#x5B9A;&#x7AEF;&#x53E3; 2222</a></li><li><a href="#&#x4E0A;&#x4F20;&#x672C;&#x5730;&#x76EE;&#x5F55;&#x5230;&#x8FDC;&#x7A0B;&#x673A;&#x5668;&#x6307;&#x5B9A;&#x76EE;&#x5F55;">5. &#x4E0A;&#x4F20;&#x672C;&#x5730;&#x76EE;&#x5F55;&#x5230;&#x8FDC;&#x7A0B;&#x673A;&#x5668;&#x6307;&#x5B9A;&#x76EE;&#x5F55;</a></li><li><a href="#&#x66F4;&#x65B0;yum&#x6E90;centos-67">6. &#x66F4;&#x65B0;yum&#x6E90;(CentOS 6/7)</a></li><ul><li><a href="#rhel&#x7CFB;&#x540E;&#x7AEF;&#x5305;&#x7BA1;&#x7406;&#x5DE5;&#x5177;rpm&#x7684;&#x4F7F;&#x7528;">6.1. RHEL&#x7CFB;&#x540E;&#x7AEF;&#x5305;&#x7BA1;&#x7406;&#x5DE5;&#x5177;rpm&#x7684;&#x4F7F;&#x7528;</a></li></ul></ul></div><a href="#&#x57FA;&#x7840;&#x547D;&#x4EE4;&#x4F7F;&#x7528;" id="anchorNavigationExGoTop"><i class="fa fa-arrow-up"></i></a><blockquote>
<p> <strong>This is Linux&#x57FA;&#x7840; StudyNote.</strong></p>
</blockquote>
<h1 id="&#x57FA;&#x7840;&#x547D;&#x4EE4;&#x4F7F;&#x7528;"><a name="&#x57FA;&#x7840;&#x547D;&#x4EE4;&#x4F7F;&#x7528;" class="anchor-navigation-ex-anchor" href="#&#x57FA;&#x7840;&#x547D;&#x4EE4;&#x4F7F;&#x7528;"><i class="fa fa-link" aria-hidden="true"></i></a>1. &#x57FA;&#x7840;&#x547D;&#x4EE4;&#x4F7F;&#x7528;</h1>
<ul>
<li><p><code>nohup</code>&#x5C06;&#x547D;&#x4EE4;&#x653E;&#x4E8E;&#x540E;&#x53F0;&#x6267;&#x884C;&#xFF0C;&#x5E38;&#x7528;&#x4E8E;&#x811A;&#x672C;&#x7C7B;&#xFF0C;&#x4F8B;&#x5982;&#xFF1A;<code>nohup sh test.sh &amp;</code>&#xFF0C;&#x6267;&#x884C;&#x547D;&#x4EE4;&#x7684;&#x540C;&#x65F6;&#xFF0C;&#x5728;&#x5BB6;&#x76EE;&#x5F55;&#x4F1A;&#x751F;&#x6210;&#x4E00;&#x4E2A;nohup.out&#x7684;&#x6587;&#x4EF6;&#x6765;&#x63A5;&#x6536;&#x8FD4;&#x56DE;&#x7ED3;&#x679C;&#xFF0C;&#x6240;&#x4EE5;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;<code>tail -f nohup.out</code>&#x6765;&#x5B9E;&#x65F6;&#x67E5;&#x770B;&#x8F93;&#x51FA;&#x5185;&#x5BB9;</p>
</li>
<li><p>screen&#x547D;&#x4EE4;&#xFF1A;</p>
<ul>
<li><blockquote>
<p>&#xFF08;1&#xFF09;&#x6253;&#x5F00;screen&#xFF1A;<code>screen</code></p>
<p>&#xFF08;2&#xFF09;&#x62C6;&#x9664;&#x5206;&#x89E3;screen&#xFF1A;&#x4F7F;&#x7528;&#x5FEB;&#x6377;&#x952E;<code>Ctrl+a&#xFF0C;d</code></p>
<p>&#xFF08;3&#xFF09;&#x5217;&#x51FA;&#x5F53;&#x524D;&#x6B63;&#x5728;&#x8FD0;&#x884C;&#x7684;screen&#xFF1A;<code>screen -ls</code></p>
<p>&#xFF08;4&#xFF09;&#x8FDE;&#x63A5;&#x81F3;screen&#xFF1A;<code>screen -r SCREEN_ID</code></p>
<p>&#xFF08;5&#xFF09;&#x5173;&#x95ED;&#x5F53;&#x524D;screen&#xFF1A;<code>exit</code></p>
</blockquote>
</li>
</ul>
</li>
<li><p>&#x89E3;&#x538B;&#x7F29;</p>
<ul>
<li><blockquote>
<p>1&#x3001;*.tar &#x7528; tar &#x2013;xvf &#x89E3;&#x538B;</p>
<p>2&#x3001;*.gz &#x7528; gzip -d&#x6216;&#x8005;gunzip &#x89E3;&#x538B;</p>
<p>3&#x3001;<em>.tar.gz&#x548C;</em>.tgz &#x7528; tar &#x2013;xzf &#x89E3;&#x538B;</p>
<p>4&#x3001;*.bz2 &#x7528; bzip2 -d&#x6216;&#x8005;&#x7528;bunzip2 &#x89E3;&#x538B;</p>
<p>5&#x3001;*.tar.bz2&#x7528;tar &#x2013;xjf &#x89E3;&#x538B;</p>
<p>6&#x3001;*.Z &#x7528; uncompress &#x89E3;&#x538B;</p>
<p>7&#x3001;*.tar.Z &#x7528;tar &#x2013;xZf &#x89E3;&#x538B;</p>
</blockquote>
</li>
</ul>
</li>
<li><p>scp&#x547D;&#x4EE4;&#xFF1A;&#x52A0;&#x5BC6;&#x4F20;&#x8F93;-&#x672C;&#x5730;&#x4E3B;&#x673A;-&#x8FDC;&#x7A0B;&#x4E3B;&#x673A;(&#x5177;&#x4F53;&#x53C2;&#x89C1;<a href="https://wangchujiang.com/linux-command/c/scp.html" target="_blank">https://wangchujiang.com/linux-command/c/scp.html</a>&#x6216;&#x8005;man pages)</p>
<ul>
<li>```bash<h1 id="&#x4ECE;&#x8FDC;&#x5904;&#x590D;&#x5236;&#x6587;&#x4EF6;&#x5230;&#x672C;&#x5730;&#x76EE;&#x5F55;"><a name="&#x4ECE;&#x8FDC;&#x5904;&#x590D;&#x5236;&#x6587;&#x4EF6;&#x5230;&#x672C;&#x5730;&#x76EE;&#x5F55;" class="anchor-navigation-ex-anchor" href="#&#x4ECE;&#x8FDC;&#x5904;&#x590D;&#x5236;&#x6587;&#x4EF6;&#x5230;&#x672C;&#x5730;&#x76EE;&#x5F55;"><i class="fa fa-link" aria-hidden="true"></i></a>2. &#x4ECE;&#x8FDC;&#x5904;&#x590D;&#x5236;&#x6587;&#x4EF6;&#x5230;&#x672C;&#x5730;&#x76EE;&#x5F55;</h1>
scp root@centos:/root/anaconda-ks.cfg .</li>
</ul>
<h1 id="&#x4E0A;&#x4F20;&#x672C;&#x5730;&#x6587;&#x4EF6;&#x5230;&#x8FDC;&#x7A0B;&#x673A;&#x5668;&#x6307;&#x5B9A;&#x76EE;&#x5F55;"><a name="&#x4E0A;&#x4F20;&#x672C;&#x5730;&#x6587;&#x4EF6;&#x5230;&#x8FDC;&#x7A0B;&#x673A;&#x5668;&#x6307;&#x5B9A;&#x76EE;&#x5F55;" class="anchor-navigation-ex-anchor" href="#&#x4E0A;&#x4F20;&#x672C;&#x5730;&#x6587;&#x4EF6;&#x5230;&#x8FDC;&#x7A0B;&#x673A;&#x5668;&#x6307;&#x5B9A;&#x76EE;&#x5F55;"><i class="fa fa-link" aria-hidden="true"></i></a>3. &#x4E0A;&#x4F20;&#x672C;&#x5730;&#x6587;&#x4EF6;&#x5230;&#x8FDC;&#x7A0B;&#x673A;&#x5668;&#x6307;&#x5B9A;&#x76EE;&#x5F55;</h1>
<p>scp /home/suofeiya/Shell_Study/control_progress_status/prepare.txt root@centps:/root</p>
<h1 id="&#x6307;&#x5B9A;&#x7AEF;&#x53E3;-2222"><a name="&#x6307;&#x5B9A;&#x7AEF;&#x53E3;-2222" class="anchor-navigation-ex-anchor" href="#&#x6307;&#x5B9A;&#x7AEF;&#x53E3;-2222"><i class="fa fa-link" aria-hidden="true"></i></a>4. &#x6307;&#x5B9A;&#x7AEF;&#x53E3; 2222</h1>
<p>scp -rp -P 2222 /home/suofeiya/Shell_Study/control_progress_status/prepare.txt root@centps:/root</p>
<h1 id="&#x4E0A;&#x4F20;&#x672C;&#x5730;&#x76EE;&#x5F55;&#x5230;&#x8FDC;&#x7A0B;&#x673A;&#x5668;&#x6307;&#x5B9A;&#x76EE;&#x5F55;"><a name="&#x4E0A;&#x4F20;&#x672C;&#x5730;&#x76EE;&#x5F55;&#x5230;&#x8FDC;&#x7A0B;&#x673A;&#x5668;&#x6307;&#x5B9A;&#x76EE;&#x5F55;" class="anchor-navigation-ex-anchor" href="#&#x4E0A;&#x4F20;&#x672C;&#x5730;&#x76EE;&#x5F55;&#x5230;&#x8FDC;&#x7A0B;&#x673A;&#x5668;&#x6307;&#x5B9A;&#x76EE;&#x5F55;"><i class="fa fa-link" aria-hidden="true"></i></a>5. &#x4E0A;&#x4F20;&#x672C;&#x5730;&#x76EE;&#x5F55;&#x5230;&#x8FDC;&#x7A0B;&#x673A;&#x5668;&#x6307;&#x5B9A;&#x76EE;&#x5F55;</h1>
<p>scp -r /home/suofeiya/Shell_Study/control_progress_status/test root@centos:/root/test
```</p>
</li>
<li><p>find&#x5B9E;&#x7528;&#x547D;&#x4EE4;</p>
<ul>
<li><pre class="language-"><code class="lang-bash"><span class="token function">find</span>  ./ -perm /002  -exec <span class="token function">mv</span> <span class="token punctuation">{</span><span class="token punctuation">}</span> <span class="token punctuation">{</span><span class="token punctuation">}</span>.bak <span class="token punctuation">\</span><span class="token punctuation">;</span>
<span class="token comment">#  &#x67E5;&#x627E;&#x6CA1;&#x6709;&#x5C5E;&#x7EC4;&#x5C5E;&#x4E3B;&#x7684;&#x6587;&#x4EF6;&#xFF0C;&#x5E76;&#x4E00;&#x4E2A;&#x4E2A;&#x8BE2;&#x95EE;&#x662F;&#x5426;&#x8981;&#x66F4;&#x6539;&#x6743;&#x9650;</span>
<span class="token function">find</span> ./ -nouser -a -nogroup -ok <span class="token function">chmod</span> root:root <span class="token punctuation">{</span><span class="token punctuation">}</span> <span class="token punctuation">\</span><span class="token punctuation">;</span>
</code></pre>
</li>
</ul>
</li>
<li><p>rename&#x91CD;&#x547D;&#x540D;</p>
<ul>
<li><pre class="language-"><code class="lang-bash"><span class="token function">rename</span>
</code></pre>
</li>
</ul>
</li>
<li><p>cat&#x547D;&#x4EE4;&#x7684;&#x7279;&#x6B8A;&#x4F7F;&#x7528;</p>
<ul>
<li><pre class="language-"><code class="lang-bash"><span class="token function">cat</span> <span class="token operator">&lt;&lt;</span> <span class="token string">EOF
something u want write here.
EOF</span>
</code></pre>
</li>
</ul>
</li>
</ul>
<ul>
<li><p><code>anacron</code>&#x5B9A;&#x65F6;&#x4EFB;&#x52A1;</p>
</li>
<li><p><code>chroot</code>&#x5207;&#x6362;root&#x76EE;&#x5F55;</p>
</li>
<li><p><code>hash</code>&#x547D;&#x4EE4;</p>
</li>
</ul>
<pre class="language-"><code>*   ```bash
    # &#x8BF4;&#x660E;&#xFF1A;
    # linux&#x7CFB;&#x7EDF;&#x4E0B;&#x4F1A;&#x6709;&#x4E00;&#x4E2A;hash&#x8868;&#xFF0C;&#x5F53;&#x4F60;&#x521A;&#x5F00;&#x673A;&#x65F6;&#x8FD9;&#x4E2A;hash&#x8868;&#x4E3A;&#x7A7A;&#xFF0C;&#x6BCF;&#x5F53;&#x4F60;&#x6267;&#x884C;&#x8FC7;&#x4E00;&#x6761;&#x547D;&#x4EE4;&#x65F6;&#xFF0C;hash&#x8868;&#x4F1A;&#x8BB0;&#x5F55;&#x4E0B;&#x8FD9;&#x6761;&#x547D;&#x4EE4;&#x7684;&#x8DEF;&#x5F84;&#xFF0C;&#x5C31;&#x76F8;&#x5F53;&#x4E8E;&#x7F13;&#x5B58;&#x4E00;&#x6837;&#x3002;&#x7B2C;&#x4E00;&#x6B21;&#x6267;&#x884C;&#x547D;&#x4EE4;shell&#x89E3;&#x91CA;&#x5668;&#x9ED8;&#x8BA4;&#x7684;&#x4F1A;&#x4ECE;PATH&#x8DEF;&#x5F84;&#x4E0B;&#x5BFB;&#x627E;&#x8BE5;&#x547D;&#x4EE4;&#x7684;&#x8DEF;&#x5F84;&#xFF0C;&#x5F53;&#x4F60;&#x7B2C;&#x4E8C;&#x6B21;&#x4F7F;&#x7528;&#x8BE5;&#x547D;&#x4EE4;&#x65F6;&#xFF0C;shell&#x89E3;&#x91CA;&#x5668;&#x9996;&#x5148;&#x4F1A;&#x67E5;&#x770B;hash&#x8868;&#xFF0C;&#x6CA1;&#x6709;&#x8BE5;&#x547D;&#x4EE4;&#x624D;&#x4F1A;&#x53BB;PATH&#x8DEF;&#x5F84;&#x4E0B;&#x5BFB;&#x627E;
    # hash&#x8868;&#x7684;&#x4F5C;&#x7528;&#xFF1A; &#x5927;&#x5927;&#x63D0;&#x9AD8;&#x547D;&#x4EE4;&#x7684;&#x8C03;&#x7528;&#x901F;&#x7387;
    -l              # &#x663E;&#x793A;hash&#x8868;&#x5185;&#x5BB9;
    -r                #  &#x6E05;&#x9664;hash&#x8868;
    -d openssl             #&#x5220;&#x9664;&#x8868;&#x4E2D;&#x67D0;&#x4E00;&#x6761;&#xFF08;&#x5220;&#x9664;openssl&#xFF09;
    -t openssl            #  &#x67E5;&#x770B;openssl&#x547D;&#x4EE4;&#x8DEF;&#x5F84;&#xFF08;hash&#x8868;&#x4E2D;&#x6CA1;&#x6709;&#x7684;&#x8BDD;&#xFF0C;&#x53EF;&#x4EE5;&#x8C03;&#x7528;which&#x547D;&#x4EE4;&#xFF09;
    -p /usr/bin/openssl aliesopenssl        # &#x5F80;hash&#x8868;&#x4E2D;&#x6DFB;&#x52A0;&#x4E00;&#x6761;&#xFF0C;&#x6267;&#x884C;aliesopenssl&#x5373;&#x6267;&#x884C;openssl&#x547D;&#x4EE4;&#xFF08;&#x8D77;&#x522B;&#x540D;&#xFF09;

    *  &#x6CE8;&#x610F;&#xFF1A;hash&#x547D;&#x4EE4;&#x9ED8;&#x8BA4;&#x5728;centos&#x4E2D;&#x6709;&#xFF0C;Ubuntu&#x6CA1;&#x6709;   
    ```
</code></pre><ul>
<li><p>&#x6253;&#x5F00;&#x5173;&#x95ED;&#x4EA4;&#x6362;&#x7A7A;&#x95F4;&#xFF0C;<code>swapon</code> <code>swapoff</code></p>
</li>
<li><p>&#x6302;&#x8F7D;&#x5378;&#x8F7D;&#x8BBE;&#x5907;</p>
<ul>
<li><pre class="language-"><code class="lang-bash"><span class="token comment">#  &#x67E5;&#x770B;&#x5F53;&#x524D;&#x5DF2;&#x6302;&#x8F7D;&#x7684;&#x8BBE;&#x5907;</span>
<span class="token function">mount</span>
<span class="token function">cat</span> /etc/mtab
<span class="token function">cat</span> /proc/mounts

<span class="token comment">#  &#x6302;&#x8F7D;&#x8BBE;&#x5907;</span>
<span class="token function">mount</span> -o loop /<span class="token environment constant">PATH</span>/TO/DIR MOUNT_POINT <span class="token comment"># &#x6302;&#x5728;&#x672C;&#x5730;&#x56DE;&#x73AF;&#x8BBE;&#x5907;&#xFF0C;-o&#x6307;&#x5B9A;&#x6302;&#x8F7D;&#x9009;&#x9879;&#xFF0C;&#x5176;&#x4E2D;&#x6709;sync&#x3001;nosync&#x3001;atime&#x3001;noatime&#x3001;diratime&#x3001;nodiratime&#x3001;remont(&#x5E38;&#x7528;&#xFF0C;&#x65E0;&#x9700;&#x5378;&#x8F7D;)</span>
<span class="token function">mount</span> -r /dev/cdrom MOUNT_POINT <span class="token comment"># &#x6302;&#x8F7D;&#x53EA;&#x8BFB;&#x5149;&#x76D8;&#x6587;&#x4EF6;</span>

<span class="token comment">#  &#x5C06;&#x4E00;&#x4E2A;&#x76EE;&#x5F55;&#x7ED1;&#x5B9A;&#x81F3;&#x53E6;&#x4E00;&#x4E2A;&#x76EE;&#x5F55;</span>
<span class="token function">mount</span> -bind SOURCE_DIR DISTIN_DIR

<span class="token comment"># &#x5378;&#x8F7D;&#x8BBE;&#x5907;</span>
<span class="token comment">#  &#x67E5;&#x770B;&#x8BBE;&#x5907;&#x88AB;&#x90A3;&#x4E9B;&#x8FDB;&#x7A0B;&#x6240;&#x5360;&#x7528;</span>
<span class="token function">lsof</span> MOUNT_POINT
<span class="token function">fuser</span> -v MOUNT_POINT
<span class="token function">fuser</span> -km MOUNT_POINT  <span class="token comment">#  &#x5F3A;&#x884C;&#x7EC8;&#x6B62;&#x6B63;&#x5728;&#x8BBF;&#x95EE;&#x67D0;&#x6302;&#x8F7D;&#x70B9;&#x7684;&#x8FDB;&#x7A0B;</span>
</code></pre>
</li>
</ul>
</li>
<li><p><code>systemctl</code>&#x547D;&#x4EE4;</p>
<ul>
<li><pre class="language-"><code class="lang-bash">systemctl try-restart NAME.service        <span class="token comment"># CentOS7&#x6761;&#x4EF6;&#x5F0F;&#x91CD;&#x542F;&#x670D;&#x52A1;&#xFF08;&#x5373;&#x5F53;&#x670D;&#x52A1;&#x8FD0;&#x884C;&#x7684;&#x65F6;&#x5019;&#x624D;&#x4F1A;&#x6267;&#x884C;&#x91CD;&#x542F;&#x64CD;&#x4F5C;&#xFF0C;&#x5426;&#x5219;&#x4E0D;&#x6267;&#x884C;&#xFF09;&#xFF0C;&#x5728;CentOS6&#x4F7F;&#x7528;condrestart</span>
systemctl reload-or-restart NAME.service            <span class="token comment"># &#x91CD;&#x8F7D;&#x6216;&#x8005;&#x91CD;&#x542F;&#x670D;&#x52A1;</span>
systemctl reload-or-try-restart NAME.service            <span class="token comment"># &#x91CD;&#x8F7D;&#x6216;&#x8005;&#x6761;&#x4EF6;&#x5F0F;&#x91CD;&#x542F;&#x670D;&#x52A1;</span>

systemctl is-active NAME.service            <span class="token comment"># &#x67E5;&#x770B;&#x67D0;&#x670D;&#x52A1;&#x662F;&#x5426;&#x6FC0;&#x6D3B;&#x4E0E;&#x5426;</span>
systemctl list-units --type <span class="token function">service</span>            <span class="token comment"># &#x67E5;&#x770B;&#x6240;&#x6709;&#x5DF2;&#x6FC0;&#x6D3B;&#x7684;&#x670D;&#x52A1;</span>
systemctl list-units -t <span class="token function">service</span> -all            <span class="token comment"># &#x67E5;&#x770B;&#x7CFB;&#x7EDF;&#x4E0A;&#x6240;&#x6709;&#x7684;&#x670D;&#x52A1;&#xFF0C;&#x5728;CentOS6&#x4E0A;&#x4F7F;&#x7528;&#x7684;&#x662F;chkconfig --list</span>
systemctl mask<span class="token operator">|</span>unmask NAME.service            <span class="token comment"># &#x5141;&#x8BB8;&#x6216;&#x8005;&#x7981;&#x6B62;&#x67D0;&#x670D;&#x52A1;&#x5F00;&#x673A;&#x542F;&#x52A8;</span>
</code></pre>
</li>
</ul>
</li>
</ul>
<hr>
<h1 id="&#x66F4;&#x65B0;yum&#x6E90;centos-67"><a name="&#x66F4;&#x65B0;yum&#x6E90;centos-67" class="anchor-navigation-ex-anchor" href="#&#x66F4;&#x65B0;yum&#x6E90;centos-67"><i class="fa fa-link" aria-hidden="true"></i></a>6. &#x66F4;&#x65B0;yum&#x6E90;(CentOS 6/7)</h1>
<ul>
<li><pre class="language-"><code class="lang-bash"><span class="token comment"># &#x4E0B;&#x8F7D;repo&#x6E90;&#xFF0C;&#x5EFA;&#x8BAE;&#x9009;&#x62E9;&#x56FD;&#x5185;&#x6E90;(163&#xFF0C;aliyun)</span>
<span class="token function">wget</span> <span class="token punctuation">..</span>./*.repo
<span class="token comment"># &#x5907;&#x4EFD;&#x539F;&#x6765;&#x7684;&#x57FA;&#x7840;&#x6E90;</span>
<span class="token function">mv</span> /etc/yum.repo.d/*.Base.repo *.bak
<span class="token comment"># &#x66FF;&#x6362;&#x6E90;</span>
<span class="token function">mv</span> <span class="token punctuation">..</span>.
<span class="token comment"># &#x6267;&#x884C;yum&#x6E90;&#x7684;&#x66F4;&#x65B0;</span>
yum clean all    <span class="token comment"># &#x6E05;&#x9664;yum&#x7F13;&#x5B58;</span>
yum makeclean    <span class="token comment"># &#x91CD;&#x5EFA;yum&#x7F13;&#x5B58;</span>
yum update
</code></pre>
</li>
<li><pre class="language-"><code class="lang-bash"><span class="token comment"># &#x589E;&#x52A0;epel&#x6E90;</span>
<span class="token function">wget</span> https://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
<span class="token function">rpm</span> -ivh <span class="token punctuation">..</span>. <span class="token comment"># &#x5B89;&#x88C5;rpm</span>
<span class="token comment"># &#x5B89;&#x88C5;yum-priorities&#x6E90;&#x4F18;&#x5148;&#x7EA7;&#x5DE5;&#x5177;</span>
yum <span class="token function">install</span> yum-priorities
</code></pre>
</li>
</ul>
<h2 id="rhel&#x7CFB;&#x540E;&#x7AEF;&#x5305;&#x7BA1;&#x7406;&#x5DE5;&#x5177;rpm&#x7684;&#x4F7F;&#x7528;"><a name="rhel&#x7CFB;&#x540E;&#x7AEF;&#x5305;&#x7BA1;&#x7406;&#x5DE5;&#x5177;rpm&#x7684;&#x4F7F;&#x7528;" class="anchor-navigation-ex-anchor" href="#rhel&#x7CFB;&#x540E;&#x7AEF;&#x5305;&#x7BA1;&#x7406;&#x5DE5;&#x5177;rpm&#x7684;&#x4F7F;&#x7528;"><i class="fa fa-link" aria-hidden="true"></i></a>6.1. RHEL&#x7CFB;&#x540E;&#x7AEF;&#x5305;&#x7BA1;&#x7406;&#x5DE5;&#x5177;rpm&#x7684;&#x4F7F;&#x7528;</h2>
<ul>
<li><blockquote>
<p>&#x5B89;&#x88C5;&#xFF1A;</p>
<p>&#x200B;    rpm -ivh(-i &#x5B89;&#x88C5;&#x5305; -v verbose&#x8BE6;&#x7EC6;&#x4FE1;&#x606F; -h hash&#x503C;&#x6765;&#x8868;&#x793A;&#x8FDB;&#x5EA6;&#x6761;&#x6BCF;&#x4E00;&#x4E2A;#&#x4EE3;&#x8868;2%)PackageName</p>
<p>&#x200B;    --nodeps &#x5FFD;&#x7565;&#x4F9D;&#x8D56;&#x6027;&#x68C0;&#x67E5;    --replacepkgs &#x91CD;&#x65B0;&#x5B89;&#x88C5;</p>
<p>&#x5378;&#x8F7D;&#xFF1A;</p>
<p>&#x200B;    rpm -e(erase) PackageName</p>
<p>&#x200B;    --nodeps</p>
<p>&#x5347;&#x7EA7;&#xFF1A;</p>
<p>&#x200B;    rpm -Uvh&#x3001;-Fvh &#x524D;&#x8005;&#x5982;&#x679C;&#x4E4B;&#x524D;&#x672A;&#x5B89;&#x88C5;&#x8FC7;&#x5219;&#x4F1A;&#x76F4;&#x63A5;&#x5B89;&#x88C5;&#x8BE5;&#x5305;&#xFF0C;&#x540E;&#x8005;&#x5219;&#x4E0D;&#x4F1A;</p>
<p>&#x67E5;&#x8BE2;&#xFF1A;</p>
<p>&#x200B;    rpm -qa &#x3001;-qf&#x3001;-qi&#x3001;-qc&#x3001;-q --scripts(&#x5B89;&#x88C5;&#x4E4B;&#x524D;preinstall&#x5B89;&#x88C5;&#x4E4B;&#x540E;postinstall&#x5378;&#x8F7D;&#x4E4B;&#x524D;preuninstall&#x5378;&#x8F7D;&#x4E4B;&#x540E;postuninstall&#x7684;&#x811A;&#x672C;&#x4FE1;&#x606F;)&#x3001;-q provides(&#x8BE5;&#x5305;&#x5B89;&#x88C5;&#x540E;&#x4F1A;&#x63D0;&#x4F9B;&#x90A3;&#x4E9B;&#x670D;&#x52A1;&#x6216;&#x8005;&#x5DE5;&#x5177;)&#x3001;-q --requires(&#x67E5;&#x8BE2;&#x5305;&#x5B89;&#x88C5;&#x4F9D;&#x8D56;)</p>
<p>&#x6821;&#x9A8C;&#xFF1A;</p>
<p>&#x200B;    rpm -V</p>
<ul>
<li>&#x5BFC;&#x5165;GPG&#x79D8;&#x94A5;&#x6587;&#x4EF6;&#xFF1A;rpm --import GPG&#x79D8;&#x94A5;&#x6587;&#x4EF6; </li>
<li>rpm -K &#x7528;&#x4E8E;&#x624B;&#x52A8;&#x68C0;&#x67E5;&#x5305;&#x7684;&#x6765;&#x6E90;&#x5B89;&#x5168;&#x6027;&#x548C;&#x6587;&#x4EF6;&#x5B8C;&#x6210;&#x6027;&#x4FE1;&#x606F;&#xFF0C;&#x53EF;&#x9009;&#x9009;&#x9879;--nodigest(&#x4E0D;&#x68C0;&#x67E5;&#x5B8C;&#x6574;&#x6027;)--nosignature(&#x4E0D;&#x68C0;&#x67E5;&#x6765;&#x6E90;&#x5B89;&#x5168;&#x6027;&#x7B7E;&#x540D;)</li>
</ul>
<p>&#x6570;&#x636E;&#x5E93;&#x91CD;&#x5EFA;&#xFF1A;</p>
<p>&#x200B;    rpm --initdb&#x3001;--rebuilddb</p>
</blockquote>
</li>
</ul>
<hr>
<ul>
<li><p><code>ntsysv</code>&#x547D;&#x4EE4;&#xFF1A;&#x56FE;&#x5F62;&#x5316;&#x663E;&#x793A;&#x6240;&#x8981;&#x542F;&#x52A8;&#x7684;&#x670D;&#x52A1;&#xFF0C;RHEL&#x7CFB;</p>
</li>
<li><p>&#x4FEE;&#x6539;<code>/etc/init/start-ttys.conf</code>&#x5173;&#x95ED;&#x4E0D;&#x5FC5;&#x8981;&#x7684;tty&#xFF0C;&#x4FEE;&#x6539;&#x8FD9;&#x4E2A;&#x4F4D;&#x7F6E;&#xFF0C;&#x5373;&#x53EF;&#x5173;&#x95ED;&#x4E0D;&#x5FC5;&#x8981;&#x7684;tty</p>
<p><code>env ACTIVE_CONSOLES=/dev/tty[1-6]</code></p>
</li>
<li><p><code>echo &quot;net.ipv4.tcp_syncookies = 1&quot; &gt;&gt; /etc/sysctl.conf</code>&#x53EF;&#x4EE5;&#x52A0;&#x5F3A;&#x5BF9;&#x6297;syn flood&#x7684;&#x80FD;&#x529B;&#xFF0C;&#x4F7F;&#x7528;<code>sysctl -p</code>&#x751F;&#x6548;</p>
</li>
<li><p>&#x4FEE;&#x6539;history&#x7684;&#x8BB0;&#x5F55;&#x6570;&#x91CF;&#xFF0C;&#x4F7F;&#x7528;source /etc/profile&#x5373;&#x53EF;&#x751F;&#x6548;</p>
</li>
<li><p>&#x5B89;&#x88C5;ntp &#xFF0C;&#x4E3A;&#x7528;&#x6237;&#x52A0;&#x5165;<code>crontab (-e)&#x8BA1;&#x5212;/usr/sbin/ntpdate ntp.api.bz</code>&#xFF0C;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;<code>dig ntp.api.bz</code>&#x6765;&#x67E5;&#x770B;(dig&#x5728;centos&#x4E2D;&#x6240;&#x5C5E;bind-tools&#x5305;)</p>
</li>
</ul>
<footer class="page-footer"><span class="copyright">Copyright &#xA9; AGou 2020 all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification">&#x8BE5;&#x6587;&#x4EF6;&#x4FEE;&#x8BA2;&#x65F6;&#x95F4;&#xFF1A;
2020-03-02 20:42:24
</span></footer>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="./" class="navigation navigation-prev " aria-label="Previous page: Linux">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="Linux启动流程、内核、grub、模块、内核的编译、anaconda自动化.html" class="navigation navigation-next " aria-label="Next page: Linux启动流程、内核、grub、模块等">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"Linux基础","level":"1.4.1","depth":2,"next":{"title":"Linux启动流程、内核、grub、模块等","level":"1.4.2","depth":2,"path":"Linux/Linux启动流程、内核、grub、模块、内核的编译、anaconda自动化.md","ref":"Linux/Linux启动流程、内核、grub、模块、内核的编译、anaconda自动化.md","articles":[]},"previous":{"title":"Linux","level":"1.4","depth":1,"path":"Linux/README.md","ref":"Linux/README.md","articles":[{"title":"Linux基础","level":"1.4.1","depth":2,"path":"Linux/Linux基础.md","ref":"Linux/Linux基础.md","articles":[]},{"title":"Linux启动流程、内核、grub、模块等","level":"1.4.2","depth":2,"path":"Linux/Linux启动流程、内核、grub、模块、内核的编译、anaconda自动化.md","ref":"Linux/Linux启动流程、内核、grub、模块、内核的编译、anaconda自动化.md","articles":[]},{"title":"Linux服务器","level":"1.4.3","depth":2,"path":"Linux/Linux服务器.md","ref":"Linux/Linux服务器.md","articles":[]},{"title":"Linux状态信息","level":"1.4.4","depth":2,"path":"Linux/Linux状态信息.md","ref":"Linux/Linux状态信息.md","articles":[]},{"title":"Linux网络客户端工具","level":"1.4.5","depth":2,"path":"Linux/Linux网络客户端工具.md","ref":"Linux/Linux网络客户端工具.md","articles":[]},{"title":"Linux网络配置","level":"1.4.6","depth":2,"path":"Linux/Linux网络配置.md","ref":"Linux/Linux网络配置.md","articles":[]},{"title":"Linux配置文件","level":"1.4.7","depth":2,"path":"Linux/Linux配置文件.md","ref":"Linux/Linux配置文件.md","articles":[]},{"title":"Linux时间服务器","level":"1.4.8","depth":2,"path":"Linux/Linux时间服务器.md","ref":"Linux/Linux时间服务器.md","articles":[]},{"title":"Linux日志管理系统","level":"1.4.9","depth":2,"path":"Linux/Linux日志管理系统.md","ref":"Linux/Linux日志管理系统.md","articles":[]},{"title":"sudo详解","level":"1.4.10","depth":2,"path":"Linux/sudo详解.md","ref":"Linux/sudo详解.md","articles":[]},{"title":"SELinux","level":"1.4.11","depth":2,"path":"Linux/SElinux.md","ref":"Linux/SElinux.md","articles":[]},{"title":"iptables","level":"1.4.12","depth":2,"path":"Linux/iptables.md","ref":"Linux/iptables.md","articles":[]},{"title":"Linux Shell","level":"1.4.13","depth":2,"path":"Linux/Linux_shell.md","ref":"Linux/Linux_shell.md","articles":[]},{"title":"shell_awk","level":"1.4.14","depth":2,"path":"Linux/shell_awk.md","ref":"Linux/shell_awk.md","articles":[]},{"title":"OpenSSL、PKI搭建","level":"1.4.15","depth":2,"path":"Linux/OpenSSL、PKI搭建、算法.md","ref":"Linux/OpenSSL、PKI搭建、算法.md","articles":[]},{"title":"DNS服务器","level":"1.4.16","depth":2,"path":"Linux/DNS服务器.md","ref":"Linux/DNS服务器.md","articles":[]},{"title":"Frp内网穿透","level":"1.4.17","depth":2,"path":"Linux/Frp内网穿透.md","ref":"Linux/Frp内网穿透.md","articles":[]},{"title":"Linux其他","level":"1.4.18","depth":2,"path":"Linux/Linux其他.md","ref":"Linux/Linux其他.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["github@^2.0.0","edit-link@^2.0.2","anchors@^0.7.1","include-codeblock@^3.0.2","tbfed-pagefooter@^0.0.1","expandable-chapters-small@^0.1.7","anchor-navigation-ex@0.1.8","prism","-highlight","insert-logo","-lunr","-search","search-pro","splitter","lightbox","github-buttons","-sharing","sharing-plus","donate","code","-klipse","livereload"],"root":".","styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright © AGou 2020","modify_label":"该文件修订时间：","modify_format":"YYYY-MM-DD HH:mm:ss"},"prism":{"css":["prismjs/themes/prism-tomorrow.css"]},"github":{"url":"https://github.com/AGou-ops"},"livereload":{},"splitter":{},"search-pro":{},"sharing-plus":{"qq":false,"all":["facebook","google","twitter","instapaper","linkedin","pocket","stumbleupon"],"douban":false,"facebook":true,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":true,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"code":{"copyButtons":true},"donate":{"alipay":"https://agou-ops.github.io/images/alipay.png","alipayText":"支付宝打赏","button":"打赏","title":"","wechat":"https://agou-ops.github.io/images/wechatpay.png","wechatText":"微信打赏"},"fontsettings":{"theme":"white","family":"sans","size":2},"anchor-navigation-ex":{"isRewritePageTitle":true,"tocLevel1Icon":"fa fa-hand-o-right","tocLevel2Icon":"fa fa-hand-o-right","tocLevel3Icon":"fa fa-hand-o-right"},"lightbox":{"jquery":true,"sameUuid":false},"github-buttons":{"repo":"AGou-ops/myStudyNote","types":["star","watch","fork"],"size":"small"},"expandable-chapters-small":{},"include-codeblock":{"check":false,"edit":true,"fixlang":false,"lang":"","template":"ace","theme":"chrome","unindent":true},"sharing":{"qq":true,"all":["douban","facebook","google","hatenaBookmark","instapaper","linkedin","twitter","weibo","messenger","qq","qzone","viber","vk","weibo","pocket","stumbleupon","whatsapp"],"douban":false,"facebook":false,"weibo":true,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":false,"messenger":false,"line":false,"vk":false,"pocket":false,"google":false,"viber":false,"stumbleupon":false,"qzone":true,"linkedin":false},"edit-link":{"label":"Edit This Page","base":"https://github.com/AGou-ops/myStudyNote"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":true},"anchors":{},"insert-logo":{"style":"background: none; max-height: 50px; min-height: 50px","url":"https://s2.ax1x.com/2019/12/10/QBD0xO.jpg"}},"theme":"default","author":"AGou","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"AGou's StudyNote","language":"zh-hans","output.name":"site","links":{"sidebar":{"◆点击进入我的个人博客":"http://agou-ops.github.io"}},"gitbook":"3.2.3","description":"岂能尽如人意，但求无愧我心。"},"file":{"path":"Linux/Linux基础.md","mtime":"2020-03-02T12:42:24.288Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-03-02T12:42:32.383Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-github/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-edit-link/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-insert-logo/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lightbox/js/lightbox.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-github-buttons/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing-plus/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-donate/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

